package com.zyl.Ecs.realtime.service;

import com.github.yulichang.base.MPJBaseService;
import com.zyl.Ecs.common.domain.data.bean.DataBean;
import com.zyl.Ecs.common.exception.EcsException;

import java.util.List;

/**
 * @version v1.0
 * @ProjectName: Ecs
 * @Package: com.zyl.Ecs.realtime.service
 * @ClassName: RealTimeService
 * @Description TODO
 * @Author 翟玉龙
 * @Date 2024/12/6-10:53
 */
public interface RealTimeService extends MPJBaseService<DataBean> {

    /**
     * 插入数据
     *
     * @param dataList 数据列表
     * @throws EcsException 异常
     */
    void insert(List<DataBean> dataList) throws EcsException;

    /**
     * 获取实时数据
     *
     * @param tableNames 表名
     * @return {@link List }<{@link DataBean }>
     */
    List<DataBean> getRealTimeData(List<String> tableNames);
}
